package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 教材领取
 * </p>
 *
 * @author hpiggy
 * @since 2025-01-05
 */
@TableName("book_fetch")
@ApiModel(value = "BookFetch对象", description = "教材领取")
@Data
public class BookFetch implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long schoolId;

    private Long orderId;

    private Long subjectsId;

    private Long classTypeId;

    private Integer yearClassId;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private List<Integer> yearClassIdList;

    @TableField(exist = false)
    @ApiModelProperty("订购类型：0：1次，1：按课次")
    private Integer subscribeType;

    @TableField(exist = false)
    @ApiModelProperty("提前刷的课次")
    private Integer beforeLessonNum;

    @TableField(exist = false)
    @ApiModelProperty("课次")
    private Integer lessonNum;

}
